<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘商城</title>
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/search.css">
    <link rel="icon" href="./favicon.ico">
</head>
<body>
    <!-- 布局容器 -->
    <div class="lt-layout">
        <!-- 头部 -->
        <div class="lt-header fl-x">
            <a href="javascript:history.back();"><i class="mui-icon mui-icon-back"></i></a>
            <h4>搜索中心</h4>
            <a href="#"></a>
        </div>
        <!-- 主体 -->
        <div class="lt-main fl-x">
            <!-- 区域滚动 -->
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <!-- 搜索头部 -->
                    <div class="search-header fl-x">
                        <input type="text" class="search-txt" placeholder="请输入搜索关键字">
                        <button class="mui-btn-primary  search-btn">搜索</button>
                    </div>
                    <!-- 搜索内容 -->
                    <div class="search-content">
                        <!-- 掏空 -->
                    </div>
                </div>  
            </div>
        </div>
        <!-- 底部 -->
        <div class="lt-footer">
            <ul class="fl-x">
                <li>
                    <a href="./index.html">
                        <i class="fa fa-home"></i>
                        <p>首页</p>
                    </a>
                </li>
                <li>
                    <a href="./category.html">
                        <i class="fa fa-th-list"></i>
                        <p>分类</p>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <i class="fa fa-shopping-cart"></i>
                        <p>购物车</p>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <i class="fa fa-user-o"></i class="fa fa-user-o">
                        <p>用户中心</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <script type="text/html" id="tmp">
    {{if list.length == 0}}
        <p>没有更多数据了</p>
    {{else}}
        <div class="option mui-clearfix">
            <a href="#" class="mui-pull-left">搜索历史</a>
            <a href="#" class="mui-pull-right his-clear"><i class="mui-icon mui-icon-trash"></i> 清空历史</a>
        </div>
        <!-- 列表 --> 
        <ul class="history-list">
            {{each list v i}}
            <li class="mui-clearfix">
                <a href="./searchList.html?key={{v}}" class="mui-pull-left">{{v}}</a>
                <span  class="mui-pull-right his-del" data-index={{i}}>×</span>
            </li>
            {{/each}}
        </ul>
    {{/if}}
    </script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/search.js"></script>
</body>

</html>